package com.anycc.cloud.common.dto.json;

/**
 * object response
 */
public class ObjectResponse<T> implements Response {
    private String code;
    private String msg;
    private T datas;

    public ObjectResponse(String code, String msg, T datas) {
        this.code = code;
        this.msg = msg;
        this.datas = datas;
    }

    public ObjectResponse(T datas) {
        this.code = "1";
        this.msg = "";
        this.datas = datas;
    }

    public T getDatas() {
        return this.datas;
    }

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
